<html lang="en">
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>Call center scheduling - Timefold Quarkus</title>
    <link rel="stylesheet" href="/webjars/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/webjars/font-awesome/css/all.css" />
    <link rel="stylesheet" href="/webjars/timefold/css/timefold-webui.css" />
    <link rel="icon" href="/webjars/timefold/img/timefold-favicon.svg" type="image/svg+xml">
    <link rel="stylesheet" href="/style.css" />
</head>
<body>
<header id="timefold-auto-header"></header>
<div class="container-fluid">
    <div class="sticky-top d-flex justify-content-center align-items-center" aria-live="polite" aria-atomic="true">
        <div id="notificationPanel" style="position: absolute; top: .5rem;"></div>
    </div>
    <h1>Call center realtime scheduling</h1>
    <p>Assign incoming calls to agents based on required skills and minimize the customer waiting time.</p>

    <div class="mb-2">
        <button id="solveButton" type="button" class="btn btn-success">
            <span class="fas fa-play"></span> Solve
        </button>
        <button id="stopSolvingButton" type="button" class="btn btn-danger">
            <span class="fas fa-stop"></span> Stop solving
        </button>
        <span id="score" class="score ms-2 align-middle fw-bold">Score: ?</span>
        <div class="float-end">
            <div class="row">
                <div class="col-md-6">
                    <p><span id="callFrequencyValue"></span> new calls per minute</p>
                    <input type="range" min="0" max="60" value="25" id="callFrequencyRange"/>
                </div>

                <div class="col-md-6">
                    <p>Call duration <span id="callLengthValue"></span> seconds</p>
                    <input type="range" min="10" max="60" value="30" id="callLengthRange"/>
                </div>
            </div>
        </div>
    </div>

    <table class="table table-borderless table-striped" id="callTable">
        <!-- Filled in by app.js -->
    </table>
</div>
<footer id="timefold-auto-footer"></footer>

<script src="/webjars/jquery/jquery.min.js"></script>
<script src="/webjars/bootstrap/js/bootstrap.min.js"></script>
<script src="/webjars/js-joda/dist/js-joda.min.js"></script>
<script src="/webjars/timefold/js/timefold-webui.js"></script>
<script src="/app.js"></script>
</body>
</html>
